

package jetbrains.buildServer.server.rest.data.locator;


/**
 * Represents a value without internal structure important for the locator definition, i.e. integers, strings, enums, etc.
 * Intended use is for various counts and exact matches, e.g. pager `count` or `uuid`.
 */
public interface PlainValue extends Syntax {
  static PlainValue string() {
    return new PlainValue() {
      @Override
      public String getFormat() {
        return "String value";
      }
    };
  }

  static PlainValue string(String formatDecsription) {
    return new PlainValue() {
      @Override
      public String getFormat() {
        return formatDecsription;
      }
    };
  }

  static PlainValue int64() {
    return new Int64Value();
  }
}